package com.oa.admin.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用印申请附件表
 * </p>
 *
 * @author syb123
 * @since 2019-02-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("admin_using_application_file")
@ApiModel(value = "用印申请附件表")
public class UsingApplicationFile extends Model<UsingApplicationFile> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "用印申请id")
    private String usingId;

    @ApiModelProperty(value = "附件名称")
    private String name;

    @ApiModelProperty(value = "附件地址")
    private String url;

    @ApiModelProperty(value = "是否删除（1-已删除 2-未删除）")
    @JsonIgnore
    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}